package com.timedomain.him.remake.ui;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.timedomain.him.remake.Program;
import com.timedomain.him.remake.R;
import com.timedomain.him.remake.models.MorningCall;
import com.timedomain.him.remake.utils.AppSettings;
import com.timedomain.him.remake.utils.BaseActivity;
import com.timedomain.him.remake.utils.DB;
import com.timedomain.him.remake.utils.FileUtils;
import com.timedomain.him.remake.utils.MorningCallManager;

public class SplashActivity extends BaseActivity {
    Handler handler = new Handler();
    @Override
    protected void onCreate(@org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if(AppSettings.firstRun){
            startActivity(new Intent(this,WelcomeActivity.class));
            finish();
        }
        else{
            setContentView(R.layout.activity_splash);

            handler.postDelayed(()->{
                startActivity(new Intent(this,MainActivity.class));
                finish();
            },666);
        }


    }
}
